﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_RepMan_Handling.aspx.cs" Inherits="Admin_RepMan_Handling" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta charset="UTF-8"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="./css/font.css"/>
    <link rel="stylesheet" href="./css/xadmin.css"/>
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script type="text/javascript" src="./js/cookie.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
 <style>
        .all{
            width:95%;
            margin-left:2.5%
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="all">
            <br />
            <xblock style="height: 35px">
       <%-- <button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>--%>
        <span class="x-right" style="line-height:40px">共有数据：<asp:Label ID="MsgNum" runat="server" Text="0"></asp:Label> 条</span>
      </xblock>
            <asp:Label ID="LabelText" runat="server" Text="Label"></asp:Label>
        </div>
    </form>
   <%-- <form id="form1" runat="server">
        <div class="layui-container" style="margin-top:10px">
            <asp:SqlDataSource ID="SqlDataSource1"  runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionStringProManage %>" DeleteCommand="UPDATE [Repair] SET [flag]=0 WHERE [rep_id] = @rep_id" InsertCommand="INSERT INTO [Repair] ([pro_num], [pro_location], [date_inform], [rep_cause], [condition], [date_rep], [rep_perId], [rep_program]) VALUES (@pro_num, @pro_location, @date_inform, @rep_cause, @condition, @date_rep, @rep_perId, @rep_program)" SelectCommand="SELECT [rep_id], [pro_num], [pro_location], [date_inform], [rep_cause] FROM [Repair] where ([flag]=1) and([condition]=N'已报修')" UpdateCommand="UPDATE [Repair] SET [pro_num] = @pro_num, [pro_location] = @pro_location, [date_inform] = @date_inform, [rep_cause] = @rep_cause, [condition] = @condition, [date_rep] = @date_rep, [rep_perId] = @rep_perId, [rep_program] = @rep_program WHERE ([rep_id] = @rep_id)and ([flag]=1)">
                <DeleteParameters>
                    <asp:Parameter Name="rep_id" Type="Int32" />
                </DeleteParameters>
                <InsertParameters>
                    <asp:Parameter Name="pro_num" Type="String" />
                    <asp:Parameter Name="pro_location" Type="String" />
                    <asp:Parameter Name="date_inform" Type="String" />
                    <asp:Parameter Name="rep_cause" Type="String" />
                    <asp:Parameter Name="condition" Type="String" />
                    <asp:Parameter Name="date_rep" Type="String" />
                    <asp:Parameter Name="rep_perId" Type="String" />
                    <asp:Parameter Name="rep_program" Type="String" />
                </InsertParameters>
                <UpdateParameters>
                    <asp:Parameter Name="pro_num" Type="String" />
                    <asp:Parameter Name="pro_location" Type="String" />
                    <asp:Parameter Name="date_inform" Type="String" />
                    <asp:Parameter Name="rep_cause" Type="String" />
                    <asp:Parameter Name="condition" Type="String" />
                    <asp:Parameter Name="date_rep" Type="String" />
                    <asp:Parameter Name="rep_perId" Type="String" />
                    <asp:Parameter Name="rep_program" Type="String" />
                    <asp:Parameter Name="rep_id" Type="Int32" />
                </UpdateParameters>
            </asp:SqlDataSource>
            <asp:GridView ID="GridView1" runat="server" class="GridView" AutoGenerateColumns="False" DataKeyNames="rep_id" DataSourceID="SqlDataSource1" Width="784px">
                <Columns>
                    <asp:BoundField DataField="rep_id" HeaderText="报修单号" InsertVisible="False" ReadOnly="True" SortExpression="rep_id" />
                    <asp:BoundField DataField="pro_num" HeaderText="报修设备编号" SortExpression="pro_num" />
                    <asp:BoundField DataField="pro_location" HeaderText="报修设备地点" SortExpression="pro_location" />
                    <asp:BoundField DataField="date_inform" HeaderText="报修时间" SortExpression="date_inform" />
                    <asp:BoundField DataField="rep_cause" HeaderText="报修原因" SortExpression="rep_cause" />
                    <asp:CommandField HeaderText="工具栏" ShowDeleteButton="True" />
                </Columns>
            </asp:GridView>
        </div>
    </form>--%>
</body>
</html>
